<#--
  Copyright (c) 2020-Now http://www.j2eefast.com All rights reserved.
  No deletion without permission
  页面布局总入口,组件引入总入口 前端默认引擎
  @author J2eeFAST
  @date 2021-07-06
  @version v1.0.3
-->

<#--页面主题-->
<#macro pageTheme mark = false>
	<#if mark?string == "true">
		<@compress single_line=true>
			<#nested>
		</@compress>
	<#else>
		<#nested>
	</#if>
<@compress single_line=true>
<script>
    <#---->
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?d7168b0cef9904be9b675a22e48c5721";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();

    !(function () {
        if(new RegExp('login' + "$").test(window.location.href) ||
            new RegExp('index' + "$").test(window.location.href)){
            var z = "%c------------------------------------------------------------------------------------------%c \n\n"
                , r = "%c本页面由%c J2eeFAST开发设计 %cJ2eeFAST开源平台构建并发布。\n\n"
                , o = "%cJ2eeFAST 是一个致力于中小企业 Java EE 企业级快速开发平台，您可以通过 https://www.j2eefast.com 了解更多。\n\n"
                , i = "%c------------------------------------------------------------------------------------------%c \n"
                , j = "%cVERSION: "+window.__VERSION__+" %c \n\n"
                , k = "%c无限制使用请联系QQ:751312449 %c \n";
            if (window.console && console.log ) {
                var e = z + r + o + i + j + k;
                e = "%c" + (e = e.replace(/%c/g, "")),
                    console.log(e, "color: #6190e8;")
            }
        }
    })() 
</script>
</@compress>

<#assign jscssLib="">
<#assign animationTag=true>
</#macro>

<#--页面公共头部-->
<#macro header title = "默认标题J2eeFAST"
               libs = "" <#-- 需要引入的css js样式 -->
               bodyClass = "gray-bg" <#-- body样式-->
               isAnimation = true <#--是否需要页面动画 -->
               animation = "fadeInRight" <#-- -->
               style = "" <#-- body style-->
               isPAS = true <#--禁止修改 -->
               attrValue = "" <#--body 属性值 -->
               cxt = "/cxt/"
                >
<#assign jscssLib=libs>
<#assign animationTag=isAnimation>
<#import "springctx.ftl" as ctx>
<!DOCTYPE html>
<html>
<head>
<#-- 其他地方代码都可以改,未获得作者许可此信息(以下信息到END结束)请不要修改。请尊重作者劳动成果! ™否则作者有权收回软件使用权ø -->
<#-- 软著编号: 2020SR1589493 -->
<title>${i18n("${title}")} - ${tools.getConfig("productName")}</title>
<meta content='on' http-equiv='x-dns-prefetch-control'>
<meta charset="utf-8">
<meta content='always' name='referrer'>
<meta content='J2eeFAST' property='og:site_name'>
<meta content='Object' property='og:type'>
<meta content='https://www.j2eefast.com/' property='og:url'>
<meta content='${i18n("${title}")} - Powered By J2eeFAST' itemprop='name' property='og:title'>
<meta content="PoweredByJ2eeFAST、J2eeFAST" naTme="keywords">
<meta content="PoweredByJ2eeFAST、J2eeFAST" itemprop='description' name='Description'>
<meta http-equiv="Content-Language" content="${config.getSysLang()}">
<meta content="width=device-width, initial-scale=1, user-scalable=1" name="viewport"/>
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<#----------------------------------------END--------------------------------------------------------------->
<#if FAST_LOGIN_CSRF_TOKEN??>
<meta content="${FAST_LOGIN_CSRF_TOKEN}" name="csrf-token" />
</#if>
<link rel="shortcut icon" href="${ctxStatic}/static/img/favicon.ico"/>
<script src="${ctxStatic}/static/libs/jquery.min.js"></script>
<script src="${ctxStatic}/static/libs/jquery-migrate.min.js"></script>
<script src="${ctxStatic}/static/config.js"></script>
<#if isPAS>
<@cssLibs.css Libs = libs/>
<#-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<#-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<#-- Vue单页面刷新闪烁标签{{}}问题解决-->
<style>
    [v-cloak]{display:none !important;}
</style>
</#if>
<#nested>
</head>
<#if isPAS>
<body class="${bodyClass} sidebar-mini ${config.getKey('SYS_INDEX_SKINNAME','skin-blue')}" <#if style !="">style="${style}"</#if><#if attrValue != "">${attrValue}</#if>>
<#if animationTag && attrValue == "">
<div id="__bodyDiv009" class="animated ${animation}">
</#if>
</#if>
</#macro>

<#--页面公共尾部-->
<#macro footer>
<#if animationTag>
</div>
</#if>
<a id="scroll-up" href="#" class="btn btn-sm display"><i class="fa fa-angle-double-up"></i></a>
<@jsLibs.js Libs = jscssLib/>

<#nested>
</body>
</html>
</#macro>

<#--表格-->
<#macro table
        id = "bootstrap-table"
        class = ""
        title = "" <#-- 表格上名称-->
        icon = ""
        isNative = false <#-- 是否需要添加外层div-->
        >
    <#if isNative?string == "false">
        <div class="btn-group-sm" id="toolbar-${id}" role="group" style="display:none;">
            <#if title != "">
                <div class="table-title">
                    <#if icon !=""><i class="${icon}"></i></#if> <span class="table-title-span">${title}</span>
                </div>
            </#if>
            <#nested>
        </div>
        <div class="col-sm-12 select-table table-striped<#if class!=""> ${class}</#if>">
            <table id="${id}"></table>
        </div>
    <#else>
        <table id="${id}"></table>
    </#if>
</#macro>

<#-- 国际化-->
<#function i18n text args=[]>
    <#assign tt="${springMacroRequestContext.getMessage(text,args,text)}">
    <#return tt>
</#function>
<#-- 引入控件组件-->
<#import "jslibs.html" as jsLibs>
<#import "csslibs.html" as cssLibs>
<#import "/common/component/form.html" as f>